Optimal. Leaf size=15 \[ -\tanh ^{-1}\left (\sqrt {5+2 x+x^2}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 15, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.077, Rules used = {1038, 212}
\begin {gather*} -\tanh ^{-1}\left (\sqrt {x^2+2 x+5}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 1038
Rubi steps
\begin {align*} \int \frac {1+x}{\left (4+2 x+x^2\right ) \sqrt {5+2 x+x^2}} \, dx &=-\left (2 \text {Subst}\left (\int \frac {1}{2-2 x^2} \, dx,x,\sqrt {5+2 x+x^2}\right )\right )\\ &=-\tanh ^{-1}\left (\sqrt {5+2 x+x^2}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.15, size = 15, normalized size = 1.00 \begin {gather*} -\tanh ^{-1}\left (\sqrt {5+2 x+x^2}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.18, size = 14, normalized size = 0.93
method | result | size |
default | \(-\arctanh \left (\sqrt {x^{2}+2 x +5}\right )\) | \(14\) |
trager | \(\frac {\ln \left (\frac {-x^{2}+2 \sqrt {x^{2}+2 x +5}-2 x -6}{x^{2}+2 x +4}\right )}{2}\) | \(37\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 49 vs.
\(2 (13) = 26\).
time = 0.35, size = 49, normalized size = 3.27 \begin {gather*} \frac {1}{2} \, \log \left (x^{2} - \sqrt {x^{2} + 2 \, x + 5} {\left (x + 2\right )} + 3 \, x + 6\right ) - \frac {1}{2} \, \log \left (x^{2} - \sqrt {x^{2} + 2 \, x + 5} x + x + 4\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 36 vs.
\(2 (14) = 28\).
time = 2.39, size = 36, normalized size = 2.40 \begin {gather*} \frac {\log {\left (-1 + \frac {1}{\sqrt {x^{2} + 2 x + 5}} \right )}}{2} - \frac {\log {\left (1 + \frac {1}{\sqrt {x^{2} + 2 x + 5}} \right )}}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 31 vs.
\(2 (13) = 26\).
time = 3.77, size = 31, normalized size = 2.07 \begin {gather*} -\frac {1}{2} \, \log \left (\sqrt {x^{2} + 2 \, x + 5} + 1\right ) + \frac {1}{2} \, \log \left (\sqrt {x^{2} + 2 \, x + 5} - 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.76, size = 13, normalized size = 0.87 \begin {gather*} -\mathrm {atanh}\left (\sqrt {x^2+2\,x+5}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________